function api(res){
    return function(){
        let { name,age } = arguments[0]
        console.log(name,age)
    }(res)
}

api({name:"nihao",age:15})